package com.spzx.common.rabbit.entity;

import lombok.Data;
import org.springframework.amqp.rabbit.connection.CorrelationData;

/**
 * ClassName: GuiguCorrelationData
 * Package: com.spzx.common.rabbit.entity
 * Description:
 *
 * @Author 咚咚小圆帽
 * @Create 2025/3/31 22:19
 * @Version 1.0
 */
@Data
public class GuiguCorrelationData extends CorrelationData {

    //消息体
    private Object message;
    //交换机
    private String exchange;
    //路由键
    private String routingKey;
    //重试次数
    private int retryCount = 0;
    //是否延迟消息
    private boolean isDelay = false;
    //延迟时长
    private int delayTime = 10;
}
